name="abcdefgh"
# print(name[2:5])
# print(name[2:5:1])
# print(name[-6:-3])
print(name[-6:-3:1])
print((name[3:8]))
print(name[3:])
print(name[-5])
print(name[0:3])
print(name[-8:-5:1])
print(name[0:5:2])
print(name[:5:2])
print(name[::-1])